package ModelLayer;

import java.util.ArrayList;


public class SalesOrder 
{
	private int date;
	private int amount;
	private int deliveryStatus;
	private int deliveryDate;
	private int sId;
	private ArrayList<OrderLine> orderLines;
	private Person customer;
	private Invoice invoice;

	public SalesOrder()
	{
		orderLines = new ArrayList<OrderLine>();
	}
	
	public void addOrderLine(OrderLine line)
	{
		orderLines.add(line);
	}
	
	public void deleteOrderLine(OrderLine line)
	{
		orderLines.remove(line);
	}

	
	public int getsId() {
		return sId;
	}


	public void setsId(int sId) {
		this.sId = sId;
	}


	public int getDate() {
		return date;
	}

	public void setDate(int date) {
		this.date = date;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public int getDeliveryStatus() {
		return deliveryStatus;
	}

	public void setDeliveryStatus(int deliveryStatus) {
		this.deliveryStatus = deliveryStatus;
	}

	public int getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(int deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public Person getCustomer() {
		return customer;
	}

	public void setCustomer(Person customer) {
		this.customer = customer;
	}

	public Invoice getInvoice() {
		return invoice;
	}

	public void setInvoice(Invoice invoice) {
		this.invoice = invoice;
	}
	
}
